home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / lib / partman / init.d / 70update_partitions < prev    next >
Text File  |  2009-10-28  |  469b  |  26 lines

  1. #!/bin/sh
  2.  
  3. . /lib/partman/lib/base.sh
  4.  
  5. for dev in /var/lib/partman/devices/*; do
  6.     [ -d "$dev" ] || continue
  7.     cd $dev
  8.     partitions=
  9.     open_dialog PARTITIONS
  10.     while { read_line partinfo; [ "$partinfo" ]; }; do
  11.         partitions="${partitions:+$partitions$NL}$partinfo"
  12.     done
  13.     close_dialog
  14.  
  15.     IFS="$NL"
  16.     for partinfo in $partitions; do
  17.         restore_ifs
  18.         for u in /lib/partman/update.d/*; do
  19.             [ -x "$u" ] || continue
  20.             $u $dev $partinfo
  21.         done
  22.         IFS="$NL"
  23.     done
  24.     restore_ifs
  25. done
  26.